<template>
    <div class="position">
      <span class="iconfont position__icon">&#xe7f1;</span>
        黑龙江省哈尔滨市中兴大道158号哈尔滨学院4公寓537
      <span class="iconfont position__notice">&#xe8c0;</span>
    </div>
    <div class="search">
      <span class="iconfont search__icon">&#xe741;</span>
      <input class="search__input" value="山姆会员优惠商店商品"/>
    </div>
    <div class="banner">
      <img
        class="banner__img"
        src="https://img10.360buyimg.com//babel/jfs/t1/174845/34/11281/7370/60ab5adfE28fbf546/4ac7cd3d8020a404.jpg!q80.webp" />
    </div>
    <div class="icons" >
      <div class="icons__item" v-for="(item, index) in iconList" :key="index">
        <img class="icons__item__img" :src="`http://www.dell-lee.com/imgs/vue3/${item.imgName}.png`">
        <p class="icons__item__desc">{{item.desc}}</p>
      </div>
    </div>
      <div class="gap"></div>
</template>
<script>
export default {
  name: 'StaticcPark',
  setup () {
    const iconList = [
      { imgName: '超市', desc: '超市便利' },
      { imgName: '菜市场', desc: '菜市场' },
      { imgName: '水果店', desc: '水果店' },
      { imgName: '鲜花', desc: '鲜花绿植' },
      { imgName: '医药健康', desc: '医药健康' },
      { imgName: '家居', desc: '家居时尚' },
      { imgName: '蛋糕', desc: '烘培蛋糕' },
      { imgName: '签到', desc: '签到' },
      { imgName: '大牌免运', desc: '大牌免运' },
      { imgName: '红包', desc: '红包套餐' }
    ]
    return {
      iconList
    }
  }
}
</script>
<style lang="scss" scoped>
@import '../../style/viriable.scss';
@import '../../style/mixins.scss';
 .position  {
    position: relative;
    padding: .16rem .24rem .16rem 0;
    line-height: .22rem;
    font-size: .16rem;
    @include ellipsis;
    .position__icon {
      position: relative;
      // top: -.1rem;
      font-size: 0.2rem;
    }
    .position__notice {
      font-size: 0.2rem;
      position: absolute;
      right: 0;
    }
    color: $content-fontcolor;
  }
  .search {
    margin-bottom: .12rem;
    display: flex;
    line-height: .32rem;
    background: $search-bgColor;
    border-radius: .16rem;
    .search__input {
      border: none;
      outline: none;
      flex: 1;
      background: $search-bgColor;
      color: $search-fontcolor;
      border: $content-fontcolor;
      font-size: .14rem;
    }
    &__icon {
      font-size: .2rem;
      color: $search-fontcolor;
      padding: 0 .12rem 0 .16rem;
    }
  }
  .banner {
    // height: 0;
    // overflow: hidden;
    // margin-bottom: 25.4%;
    &__img {
      width: 100%;
    }
  }
  .icons {
    display: flex;
    margin-top: .16rem;
    // 换行
    flex-wrap: wrap;
    &__item {
      width: 20%;
      &__img {
        display: block;
        width: .4rem;
        height: .4rem;
        margin: 0 auto;
      }
      &__desc {
        margin: .06rem 0 .16rem 0;
        text-align: center;
        color: $content-fontcolor;
      }
    }
  }

.gap {
  margin: 0 -.18rem;
  height: .1rem;
  background: $content-bgColor;
}
</style>
